package com.lolaage.tracks.adapter;

import com.lolaage.tracks.MyLocationPolicy;

public class AbsoluteLocationPolicy implements MyLocationPolicy
{

    private final long interval;

    /**
     * @param interval the interval to request for gps signal
     */
    public AbsoluteLocationPolicy(long interval)
    {
        this.interval = interval;
    }

    @Override
    public long getDesiredPollingInterval()
    {
        return interval;
    }

    @Override
    public int getDesiredPollingDistance()
    {
        return 0;
    }

    @Override
    public void updateIdleTime(long idleTime, int newIdleDistance)
    {
        // Ignore
    }
}
